﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cylong.Cache.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            //MemcahceCache Mem = new MemcahceCache();
            //  bool bot=   Mem.Write("admin","123");
            #region  单体应用
            RedisService redis = new RedisService();
            //bool bb = redis.Write("rrrrrr", "12333");
            #endregion

            #region hash
            UserInfo info = new UserInfo();
            info.Age = "666";
            info.Sex = "66";
            info.Name = "6666666";
            info.id = "66";
            bool bb = redis.Hash_Set("UserInfo", "12333333",info);
            #endregion


            //bool bb = CacheFactory.Get(ECacheType.Redis).Write("redis12","22222");


            if (bb) { }
        }
    }
}
